package com.s07.e01.utils;

import java.util.Collection;

import com.s07.e01.model.GoldUser;
import com.s07.e01.model.User;

public class UserUtils {

	public static void listUsers(Collection<User> users) {

		for (User user : users) {
			System.out.println(user);
			
			if (user instanceof GoldUser) {
				System.out.println(((GoldUser)user).showDiscountInfo());
			}
		}
	}
}
